#ifndef __NAND_FLASH_K9F1G_H__
#define __NAND_FLASH_K9F1G_H__

#include "cpu_io.h"
#include "stm32f10x_lib.h"


//-------------------------------------------------------------------------
//External Functions
//-------------------------------------------------------------------------

int K9F1G_nand_Identify(void);
int K9F1G_nand_ReadPage(U32 *pPage, void *pBuf, U32 *pDataEcc, U8 nand_ecc);
int K9F1G_nand_ProgData(U32 *pPage, const void *pBuf, U32 *pDataEcc, U8 nand_ecc);
int K9F1G_nand_EraseBlock(U32 *pPage);



#endif

